package com.xhh.nphm.system.mapper;

import com.xhh.nphm.system.domain.TmSensitiveTime;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author Administrator
* @description 针对表【tm_sensitive_time】的数据库操作Mapper
* @createDate 2022-06-13 17:17:03
* @Entity com.xhh.nphm.system.domain.TmSensitiveTime
*/
@Mapper
public interface TmSensitiveTimeDao extends BaseMapper<TmSensitiveTime> {
    /**
     * 查询特殊时间列表数据
     *
     * @param sensitiveTime 封装特殊时间查询条件
     * @return 列表数据
     */
    @Select("SELECT pkId,sensitiveName,sensitiveStartTime, sensitiveEndTime,sensitiveDesc FROM tm_sensitive_time WHERE isDel = 0 " +
            "[[AND sensitiveName =#{sensitiveName}]]")
    List<TmSensitiveTime> listJson(TmSensitiveTime sensitiveTime);
}




